using System;
using ZhCun.DbCore.Entitys;

namespace MyConsume.Models
{
	public partial class VConsume : EntityBase
	{
		private System.String _Id;
		/// <summary>
		/// Id
		/// </summary>
		[Entity(ColumnName = CNId, IsPrimaryKey = true, IsNotNull = true)]
		public System.String Id
		{
			get { return _Id; }
			set
			{
				_Id = value;
				base.SetFieldChanged(CNId) ;
			}
		}

		private System.String _UserId;
		/// <summary>
		/// UserId
		/// </summary>
		[Entity(ColumnName = CNUserId)]
		public System.String UserId
		{
			get { return _UserId; }
			set
			{
				_UserId = value;
				base.SetFieldChanged(CNUserId) ;
			}
		}

		private System.String _ConsumeRemark;
		/// <summary>
		/// ConsumeRemark
		/// </summary>
		[Entity(ColumnName = CNConsumeRemark)]
		public System.String ConsumeRemark
		{
			get { return _ConsumeRemark; }
			set
			{
				_ConsumeRemark = value;
				base.SetFieldChanged(CNConsumeRemark) ;
			}
		}

		private System.String _ConsumeTypeId;
		/// <summary>
		/// ConsumeTypeId
		/// </summary>
		[Entity(ColumnName = CNConsumeTypeId, IsNotNull = true)]
		public System.String ConsumeTypeId
		{
			get { return _ConsumeTypeId; }
			set
			{
				_ConsumeTypeId = value;
				base.SetFieldChanged(CNConsumeTypeId) ;
			}
		}

		private System.String _TypeName;
		/// <summary>
		/// TypeName
		/// </summary>
		[Entity(ColumnName = CNTypeName, IsNotNull = true)]
		public System.String TypeName
		{
			get { return _TypeName; }
			set
			{
				_TypeName = value;
				base.SetFieldChanged(CNTypeName) ;
			}
		}

		private System.String _AccountId;
		/// <summary>
		/// AccountId
		/// </summary>
		[Entity(ColumnName = CNAccountId, IsNotNull = true)]
		public System.String AccountId
		{
			get { return _AccountId; }
			set
			{
				_AccountId = value;
				base.SetFieldChanged(CNAccountId) ;
			}
		}

		private System.String _ActName;
		/// <summary>
		/// ActName
		/// </summary>
		[Entity(ColumnName = CNActName, IsNotNull = true)]
		public System.String ActName
		{
			get { return _ActName; }
			set
			{
				_ActName = value;
				base.SetFieldChanged(CNActName) ;
			}
		}

		private System.Int16 _AmountType;
		/// <summary>
		/// AmountType
		/// </summary>
		[Entity(ColumnName = CNAmountType, IsNotNull = true)]
		public System.Int16 AmountType
		{
			get { return _AmountType; }
			set
			{
				_AmountType = value;
				base.SetFieldChanged(CNAmountType) ;
			}
		}

		private System.Decimal _Amount;
		/// <summary>
		/// Amount
		/// </summary>
		[Entity(ColumnName = CNAmount, IsNotNull = true)]
		public System.Decimal Amount
		{
			get { return _Amount; }
			set
			{
				_Amount = value;
				base.SetFieldChanged(CNAmount) ;
			}
		}

		private System.Decimal _Balance;
		/// <summary>
		/// Balance
		/// </summary>
		[Entity(ColumnName = CNBalance, IsNotNull = true)]
		public System.Decimal Balance
		{
			get { return _Balance; }
			set
			{
				_Balance = value;
				base.SetFieldChanged(CNBalance) ;
			}
		}

		private System.DateTime? _ConsumeDate;
		/// <summary>
		/// ConsumeDate
		/// </summary>
		[Entity(ColumnName = CNConsumeDate)]
		public System.DateTime? ConsumeDate
		{
			get { return _ConsumeDate; }
			set
			{
				_ConsumeDate = value;
				base.SetFieldChanged(CNConsumeDate) ;
			}
		}

		private System.Boolean? _IsCancel;
		/// <summary>
		/// IsCancel
		/// </summary>
		[Entity(ColumnName = CNIsCancel)]
		public System.Boolean? IsCancel
		{
			get { return _IsCancel; }
			set
			{
				_IsCancel = value;
				base.SetFieldChanged(CNIsCancel) ;
			}
		}

		private System.DateTime _AddTime;
		/// <summary>
		/// AddTime
		/// </summary>
		[Entity(ColumnName = CNAddTime, IsNotNull = true)]
		public System.DateTime AddTime
		{
			get { return _AddTime; }
			set
			{
				_AddTime = value;
				base.SetFieldChanged(CNAddTime) ;
			}
		}

		#region 字段名的定义
		public const string CNId = "Id";
		public const string CNUserId = "UserId";
		public const string CNConsumeRemark = "ConsumeRemark";
		public const string CNConsumeTypeId = "ConsumeTypeId";
		public const string CNTypeName = "TypeName";
		public const string CNAccountId = "AccountId";
		public const string CNActName = "ActName";
		public const string CNAmountType = "AmountType";
		public const string CNAmount = "Amount";
		public const string CNBalance = "Balance";
		public const string CNConsumeDate = "ConsumeDate";
		public const string CNIsCancel = "IsCancel";
		public const string CNAddTime = "AddTime";
		#endregion

	}
}
